.class Lcom/estrongs/android/ui/dialog/g$d;
.super Lcom/estrongs/android/view/h0;
.source "ApkPropertyDialog.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/ui/dialog/g;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "d"
.end annotation


# instance fields
.field final synthetic e:Lcom/estrongs/android/ui/dialog/g;


# direct methods
.method public constructor <init>(Lcom/estrongs/android/ui/dialog/g;Landroid/app/Activity;)V
    .locals 10

    const-string v0, ":"

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/g$d;->e:Lcom/estrongs/android/ui/dialog/g;

    .line 2
    invoke-direct {p0, p2}, Lcom/estrongs/android/view/h0;-><init>(Landroid/content/Context;)V

    const v1, 0x7f090976

    .line 3
    invoke-virtual {p0, v1}, Lcom/estrongs/android/view/h0;->b(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    const v2, 0x7f090959

    .line 4
    invoke-virtual {p0, v2}, Lcom/estrongs/android/view/h0;->b(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    const v3, 0x7f09097a

    .line 5
    invoke-virtual {p0, v3}, Lcom/estrongs/android/view/h0;->b(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    const v4, 0x7f090972

    .line 6
    invoke-virtual {p0, v4}, Lcom/estrongs/android/view/h0;->b(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    const v5, 0x7f090964

    .line 7
    invoke-virtual {p0, v5}, Lcom/estrongs/android/view/h0;->b(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    const v6, 0x7f090129

    .line 8
    invoke-virtual {p0, v6}, Lcom/estrongs/android/view/h0;->b(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/FrameLayout;

    .line 9
    invoke-static {p1}, Lcom/estrongs/android/ui/dialog/g;->a(Lcom/estrongs/android/ui/dialog/g;)Lcom/estrongs/fs/g;

    move-result-object v7

    invoke-interface {v7}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v7

    invoke-static {p1}, Lcom/estrongs/android/ui/dialog/g;->a(Lcom/estrongs/android/ui/dialog/g;)Lcom/estrongs/fs/g;

    move-result-object v8

    invoke-static {v7, v1, v8}, Lcom/estrongs/android/icon/loader/c;->a(Ljava/lang/String;Landroid/widget/ImageView;Lcom/estrongs/fs/g;)V

    .line 10
    invoke-static {p1}, Lcom/estrongs/android/ui/dialog/g;->a(Lcom/estrongs/android/ui/dialog/g;)Lcom/estrongs/fs/g;

    move-result-object v1

    invoke-interface {v1}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 11
    invoke-virtual {p2}, Landroid/app/Activity;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object p2

    .line 12
    invoke-static {p1}, Lcom/estrongs/android/ui/dialog/g;->a(Lcom/estrongs/android/ui/dialog/g;)Lcom/estrongs/fs/g;

    move-result-object v1

    invoke-interface {v1}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v1

    invoke-static {p2, v1}, Lcom/estrongs/android/pop/utils/k;->b(Landroid/content/pm/PackageManager;Ljava/lang/String;)Landroid/content/pm/PackageInfo;

    move-result-object v1

    const-string v2, ")"

    const-string v7, " ("

    if-eqz v1, :cond_0

    .line 13
    iget-object v8, v1, Landroid/content/pm/PackageInfo;->packageName:Ljava/lang/String;

    invoke-static {p1, v8}, Lcom/estrongs/android/ui/dialog/g;->a(Lcom/estrongs/android/ui/dialog/g;Ljava/lang/String;)Ljava/lang/String;

    .line 14
    iget-object v8, v1, Landroid/content/pm/PackageInfo;->versionName:Ljava/lang/String;

    invoke-static {p1, v8}, Lcom/estrongs/android/ui/dialog/g;->b(Lcom/estrongs/android/ui/dialog/g;Ljava/lang/String;)Ljava/lang/String;

    .line 15
    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v9, v1, Landroid/content/pm/PackageInfo;->versionName:Ljava/lang/String;

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v8, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v1, v1, Landroid/content/pm/PackageInfo;->versionCode:I

    invoke-virtual {v8, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v8, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v3, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 16
    invoke-static {p1}, Lcom/estrongs/android/ui/dialog/g;->a(Lcom/estrongs/android/ui/dialog/g;)Lcom/estrongs/fs/g;

    move-result-object v1

    invoke-interface {v1}, Lcom/estrongs/fs/g;->length()J

    move-result-wide v8

    invoke-static {v8, v9}, Lcom/estrongs/fs/util/f;->g(J)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v4, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 17
    invoke-static {p1}, Lcom/estrongs/android/ui/dialog/g;->c(Lcom/estrongs/android/ui/dialog/g;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v5, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    const/4 v1, 0x0

    .line 18
    :try_start_0
    invoke-static {p1}, Lcom/estrongs/android/ui/dialog/g;->c(Lcom/estrongs/android/ui/dialog/g;)Ljava/lang/String;

    move-result-object v3

    const/16 v4, 0x2000

    invoke-virtual {p2, v3, v4}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v3

    if-eqz v3, :cond_1

    const v4, 0x7f090139

    .line 19
    invoke-virtual {p0, v4}, Lcom/estrongs/android/view/h0;->b(I)Landroid/view/View;

    move-result-object v4

    invoke-virtual {v4, v1}, Landroid/view/View;->setVisibility(I)V

    const v4, 0x7f090137

    .line 20
    invoke-virtual {p0, v4}, Lcom/estrongs/android/view/h0;->b(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    .line 21
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const v8, 0x7f110a27

    invoke-virtual {p0, v8}, Lcom/estrongs/android/view/h0;->c(I)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v5, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v4, 0x7f090138

    .line 22
    invoke-virtual {p0, v4}, Lcom/estrongs/android/view/h0;->b(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    .line 23
    iget-object v5, v3, Landroid/content/pm/PackageInfo;->applicationInfo:Landroid/content/pm/ApplicationInfo;

    invoke-static {p2, v5}, Lcom/estrongs/android/pop/utils/k;->a(Landroid/content/pm/PackageManager;Landroid/content/pm/ApplicationInfo;)Ljava/lang/String;

    move-result-object p2

    invoke-virtual {v4, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const p2, 0x7f0909d2

    .line 24
    invoke-virtual {p0, p2}, Lcom/estrongs/android/view/h0;->b(I)Landroid/view/View;

    move-result-object p2

    invoke-virtual {p2, v1}, Landroid/view/View;->setVisibility(I)V

    const p2, 0x7f090961

    .line 25
    invoke-virtual {p0, p2}, Lcom/estrongs/android/view/h0;->b(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroid/widget/TextView;

    .line 26
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const v5, 0x7f110108

    invoke-virtual {p0, v5}, Lcom/estrongs/android/view/h0;->c(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const p2, 0x7f090962

    .line 27
    invoke-virtual {p0, p2}, Lcom/estrongs/android/view/h0;->b(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroid/widget/TextView;

    .line 28
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v4, v3, Landroid/content/pm/PackageInfo;->versionName:Ljava/lang/String;

    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v3, v3, Landroid/content/pm/PackageInfo;->versionCode:I

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_1
    const/4 p2, 0x0

    .line 29
    invoke-static {}, Les/b00;->q()Les/b00;

    move-result-object v0

    invoke-virtual {v0}, Les/b00;->i()Z

    move-result v0

    if-nez v0, :cond_2

    .line 30
    invoke-static {}, Lcom/estrongs/android/pop/app/messagebox/c;->b()Lcom/estrongs/android/pop/app/messagebox/c;

    move-result-object p2

    sget-object v0, Les/fl;->s:Ljava/lang/String;

    invoke-virtual {p2, v0}, Lcom/estrongs/android/pop/app/messagebox/c;->a(Ljava/lang/String;)Les/gl;

    move-result-object p2

    check-cast p2, Les/kp;

    :cond_2
    if-eqz p2, :cond_6

    .line 31
    invoke-static {p1}, Lcom/estrongs/android/ui/dialog/g;->c(Lcom/estrongs/android/ui/dialog/g;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2, v0}, Les/kp;->a(Ljava/lang/String;)Ljava/util/List;

    move-result-object p2

    if-eqz p2, :cond_6

    .line 32
    invoke-interface {p2}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_6

    .line 33
    invoke-static {}, Ljava/lang/Math;->random()D

    move-result-wide v2

    invoke-interface {p2}, Ljava/util/List;->size()I

    move-result v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    add-int/lit8 v0, v0, -0x1

    int-to-double v4, v0

    invoke-static {v4, v5}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v2, v2, v4

    :try_start_1
    invoke-static {v2, v3}, Ljava/lang/Math;->round(D)J

    move-result-wide v2

    long-to-int v0, v2

    invoke-interface {p2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Les/op;

    const-string v0, "s01"

    .line 34
    iget-object v2, p2, Les/op;->c:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    const/4 v2, -0x2

    const/4 v3, -0x1

    if-eqz v0, :cond_3

    .line 35
    new-instance v0, Les/jp;

    iget-object v4, p0, Lcom/estrongs/android/view/h0;->a:Landroid/content/Context;

    invoke-direct {v0, v4}, Les/jp;-><init>(Landroid/content/Context;)V

    .line 36
    invoke-virtual {v0, p2}, Les/jp;->setData(Les/op;)V

    .line 37
    new-instance p2, Landroid/widget/FrameLayout$LayoutParams;

    invoke-direct {p2, v3, v2}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    .line 38
    invoke-virtual {v6, v0, p2}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 39
    invoke-virtual {v6, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V

    goto/16 :goto_0

    :cond_3
    const-string v0, "s02"

    .line 40
    iget-object v4, p2, Les/op;->c:Ljava/lang/String;

    invoke-virtual {v0, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_4

    .line 41
    new-instance v0, Les/ip;

    iget-object v2, p0, Lcom/estrongs/android/view/h0;->a:Landroid/content/Context;

    invoke-direct {v0, v2}, Les/ip;-><init>(Landroid/content/Context;)V

    .line 42
    invoke-virtual {v0, p2}, Les/ip;->setData(Les/op;)V

    .line 43
    invoke-virtual {p0}, Lcom/estrongs/android/view/h0;->i()Landroid/content/Context;

    move-result-object p2

    invoke-static {p2}, Lcom/estrongs/android/pop/utils/t;->e(Landroid/content/Context;)I

    move-result p2

    .line 44
    invoke-virtual {p0}, Lcom/estrongs/android/view/h0;->i()Landroid/content/Context;

    move-result-object v2

    const v3, 0x7f0700ad

    invoke-static {v2, v3}, Lcom/estrongs/android/pop/utils/t;->a(Landroid/content/Context;I)I

    move-result v2

    mul-int/lit8 v2, v2, 0x2

    sub-int/2addr p2, v2

    .line 45
    invoke-virtual {p0}, Lcom/estrongs/android/view/h0;->i()Landroid/content/Context;

    move-result-object v2

    const v3, 0x7f0700d0

    invoke-static {v2, v3}, Lcom/estrongs/android/pop/utils/t;->a(Landroid/content/Context;I)I

    move-result v2

    mul-int/lit8 v2, v2, 0x2

    sub-int/2addr p2, v2

    const v2, 0x3f07c57c

    int-to-float v3, p2

    mul-float v3, v3, v2

    .line 46
    invoke-static {v3}, Ljava/lang/Math;->round(F)I

    move-result v2

    .line 47
    new-instance v3, Landroid/widget/FrameLayout$LayoutParams;

    invoke-direct {v3, p2, v2}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    .line 48
    invoke-virtual {v6, v0, v3}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 49
    invoke-virtual {v6, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V

    goto :goto_0

    :cond_4
    const-string v0, "s03"

    .line 50
    iget-object v4, p2, Les/op;->c:Ljava/lang/String;

    invoke-virtual {v0, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_5

    .line 51
    new-instance v0, Les/gp;

    iget-object v4, p0, Lcom/estrongs/android/view/h0;->a:Landroid/content/Context;

    invoke-direct {v0, v4}, Les/gp;-><init>(Landroid/content/Context;)V

    .line 52
    invoke-virtual {v0, p2}, Les/gp;->setData(Les/op;)V

    .line 53
    new-instance p2, Landroid/widget/FrameLayout$LayoutParams;

    invoke-direct {p2, v3, v2}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    .line 54
    invoke-virtual {v6, v0, p2}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 55
    invoke-virtual {v6, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V

    goto :goto_0

    :cond_5
    const-string v0, "s04"

    .line 56
    iget-object v4, p2, Les/op;->c:Ljava/lang/String;

    invoke-virtual {v0, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_6

    .line 57
    new-instance v0, Les/hp;

    iget-object v4, p0, Lcom/estrongs/android/view/h0;->a:Landroid/content/Context;

    invoke-direct {v0, v4}, Les/hp;-><init>(Landroid/content/Context;)V

    .line 58
    invoke-virtual {v0, p2}, Les/hp;->setData(Les/op;)V

    .line 59
    new-instance p2, Landroid/widget/FrameLayout$LayoutParams;

    invoke-direct {p2, v3, v2}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    .line 60
    invoke-virtual {v6, v0, p2}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 61
    invoke-virtual {v6, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0

    :catch_0
    move-exception p2

    .line 62
    invoke-virtual {p2}, Ljava/lang/Exception;->printStackTrace()V

    .line 63
    :cond_6
    :goto_0
    invoke-static {p1}, Lcom/estrongs/android/ui/dialog/g;->a(Lcom/estrongs/android/ui/dialog/g;)Lcom/estrongs/fs/g;

    move-result-object p2

    invoke-interface {p2}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object p2

    .line 64
    invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_7

    const-string v0, ".apk"

    invoke-virtual {p2, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_7

    const v0, 0x7f0908dd

    .line 65
    invoke-virtual {p0, v0}, Lcom/estrongs/android/view/h0;->b(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    .line 66
    invoke-virtual {v0, v1}, Landroid/widget/Button;->setVisibility(I)V

    const v1, 0x7f1100e1

    .line 67
    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(I)V

    .line 68
    new-instance v1, Lcom/estrongs/android/ui/dialog/g$d$a;

    invoke-direct {v1, p0, p1, p2}, Lcom/estrongs/android/ui/dialog/g$d$a;-><init>(Lcom/estrongs/android/ui/dialog/g$d;Lcom/estrongs/android/ui/dialog/g;Ljava/lang/String;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    :cond_7
    return-void
.end method


# virtual methods
.method protected k()I
    .locals 1

    const v0, 0x7f0c0064

    return v0
.end method
